package com.fudan.sms.dto;

import lombok.Builder;
import lombok.Data;

/**
 * @Author Xie YangZe(谢杨泽)
 * @Date 2020/6/17
 * @Time 20:25
 */
@Data
@Builder
public class ProductEntity {

    private Integer id;

    private String pname;

    private String brand;

    private Float prcie;

    private Integer stock;

    /**
     * System.out.print(shop.getId() + "\t");
     * System.out.print(shop.getName() + "\t");
     * System.out.print(shop.getPrice() + "\t");
     *
     * @return
     */
    @Override
    public String toString() {
        StringBuffer result = new StringBuffer().append(id).append("\t")
                .append(pname).append("\t")
                .append(prcie).append("\t");
        return result.toString();
    }
}
